﻿using Blogger.UI.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;


namespace Blogger.UI.Data
{
    public interface IBlogRepository
    {
         List<Blog> GetBlogs();
         List<Blog> FindBlogsByTitle(string title);
         Blog FindBlog(string ID);

         Blog CreateBlog(Blog blog);
         Blog UpdateBlog(Blog blog);
         bool DeleteBlog(Blog blog);


         Blog GetBlog(string blogId);

         void EditBlog(Blog blog);         

         List<Posting> GetPostings(string blogId);
         List<Posting> GetPostingsByBlogID(string blogId);

         void CreatePosting(string blogId, Posting posting);

         Posting GetPosting(string postingId);

         void PublishPosting(Posting posting);

         void EditPosting(Posting posting);

         void DeletePosting(Posting posting);
    }
    public interface IPostingRepository
    {
         List<Posting> GetPostings();
         List<Posting> GetPostingsByBlog(string BlogID);
         List<Posting> FindPostingsByTitle(string title);
         Posting FindPosting(string ID);

         Posting CreatePosting(Posting posting);
         Posting UpdatePosting(Posting posting);
         bool DeletePosting(Posting posting);

    }
}